13 Errors :( -
JoroApostolov - 10.02.2013
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", cmdtext, true, 10) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
SendClientMessage(playerid, COLOR_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(playerid, COLOR_RED, "You are not near the loading place.");
return 1;
}
{
ShowPlayerDialog(playerid, 2, DIALOG_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(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;
Re: 13 Errors :( -
Bikken - 10.02.2013
Put the errors in , and the script codes in
Re: 13 Errors :( -
JoroApostolov - 10.02.2013
Quote:
Originally Posted by Bikken
Put the errors in , and the script codes in
|
i did it
Re: 13 Errors :( -
SilverKiller - 10.02.2013
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..
Re: 13 Errors :( -
JoroApostolov - 10.02.2013
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.
Re: 13 Errors :( -
SilverKiller - 10.02.2013
Read my edit in my last post.
Re: 13 Errors :( -
JoroApostolov - 10.02.2013
I have the same errors
Re: 13 Errors :( -
SilverKiller - 10.02.2013
Check your PM.