13 Errors :(
#1

Here you can see the errors:
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(224) : error 035: argument type mismatch (argument 2)
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(226) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(229) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(233) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(235) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(434) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(436) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(43 : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(440) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(442) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(447) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(452) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(461) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


13 Errors.

Here is the script :

PHP код:
        if (strcmp("/loadtruck"cmdtexttrue10) == 0)
        {
        if(
GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        
SendClientMessage(playeridCOLOR_RED"You are not driving a truck from the depot.");
        }
        if(
IsPlayerInRangeOfPoint(playerid, -14.1486,149.4052,2.6075,333.0295))
        
SendClientMessage(playerid"You loaded your truck !")
        }
        else
        {
        
SendClientMessage(playeridCOLOR_RED"You are not near the loading place.");
        return 
1;
    }
        {
    
ShowPlayerDialog(playerid2DIALOG_STYLE_LIST"What do you want to deliver ?""Weapons - 6000$ + 9mm  \nLiquor - 7500$ \nPotatoes - 7000$""Load Truck""Cancel");
    return 
1
and the second one:



PHP код:
if(response)// They pressed the first button.
    
{
    switch(
dialogid2)
        {
        case 
1:// Our dialog!
            
{
               switch(
listitem)// Checking which listitem was selected
            
{
                case 
0:// Weapons
                
{
                    
SetPlayerCheckpoint(playerid, -322.9266,821.1814,14.28745.0);
                    
SendClientMessage(playeridCOLOR_YELLOW"You have loaded some Weapon crates.)");
                }
                case 
1// Liquor
                
{
                    
SetPlayerCheckpoint(playerid, -182.8844,1034.1738,19.74225.0);
                    
SendClientMessage(playeridCOLOR_YELLOW"You have loaded some Liquor crates.");
                }
                 case 
2// Potatoes
                
{
                    
SetPlayerCheckpoint(playerid, -142.8067,1222.14265.0);
                    
SendClientMessage(playeridCOLOR_YELLOW"You have loaded some Potato crates .");
                }
            }
            }
    }
    }
return 
1
Reply
#2

Put the errors in , and the script codes in
Reply
#3

Quote:
Originally Posted by Bikken
Посмотреть сообщение
Put the errors in , and the script codes in
i did it
Reply
#4

pawn Код:
SendClientMessage(playerid, "You loaded your truck !")
Replace this line with this:

pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "You loaded your truck !");
And replace the dialog things with this:

pawn Код:
if(response)// They pressed the first button.
    {
    switch(dialogid, 2)
        {
        case 1:// Our dialog!
            {
            switch(listitem)// Checking which listitem was selected
                {
                case 0:// Weapons
                {
                    SetPlayerCheckpoint(playerid, -322.9266,821.1814,14.2874, 5.0);
                    SendClientMessage(playerid, COLOR_YELLOW, "You have loaded some Weapon crates.)");
                }
                case 1: // Liquor
                {
                    SetPlayerCheckpoint(playerid, -182.8844,1034.1738,19.7422, 5.0);
                    SendClientMessage(playerid, COLOR_YELLOW, "You have loaded some Liquor crates.");
                }
                case 2: // Potatoes
                {
                    SetPlayerCheckpoint(playerid, -142.8067,1222.1426, 5.0);
                    SendClientMessage(playerid, COLOR_YELLOW, "You have loaded some Potato crates .");
                }
            }
        }
   }
}
return 1;
and tell what you get..
Reply
#5

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
pawn Код:
SendClientMessage(playerid, "You loaded your truck !")
Replace this line with this:

pawn Код:
SendClientMessage(playerid, "You loaded your truck !");
And tell me what you get..
i got this errors
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(224) : error 035: argument type mismatch (argument 2)
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(225) : warning 209: function "S@@_OnPlayerCommandText" should return a value
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(226) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(229) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(233) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(235) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(434) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(436) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(43 : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(440) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(442) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(447) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(452) : error 010: invalid function or declaration
C:\Users\user.DEPLOY38\Desktop\Test\gamemodes\NewT estMod.pwn(461) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


13 Errors.
Reply
#6

Read my edit in my last post.
Reply
#7

I have the same errors
Reply
#8

Check your PM.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)