Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Help ty.

$
0
0
I start by saying that I'm learning to script and I can not understand some things like these errors, if you could explain to me how you solved this problem thank you.

Script:
PHP Code:

if(dialogid == DROGA)
{
   switch(
dialogid)
   {
       case 
DIALOG_DROGA:
       {
           if(
response)
           {
                switch(
listitem)
                {
                     case 
0:
                     {
                        if(
GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid0xAA3333AA"Non hai abbastanza denaro.!");
                        
SendClientMessage(playerid0xAA3333AA"Hai comprato la Marijuana!");
                        
GivePlayerMoney(playerid, -1000);
                     }
                     case 
1:
                     {
                        if(
GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid0xAA3333AA"Non hai abbastanza denaro.!");
                        
SendClientMessage(playerid0xAA3333AA"Hai comprato la metanfetamina!");
                        
GivePlayerMoney(playerid, -1000);
                     }
                     case 
2:
                     {
                        if(
GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid0xAA3333AA"Non hai abbastanza denaro.!");
                        
SendClientMessage(playerid0xAA3333AA"Hai comprato la cocaina!");
                        
GivePlayerMoney(playerid, -1000);
                     }
               }
          }
       }
    }
    return 
0;



Error:
PHP Code:

C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(158) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(160) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(162) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(164) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(166) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(168) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(170) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(174) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(176) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(180) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(182) : error 010invalid function or declaration
C
:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(190) : error 010invalid function or declaration 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>