Can't figure it out..
#1

pawn Код:
if (strcmp("/ocmds", cmdtext, true, 10) == 0)
{
if(LSHaulMember[playerid] == 1)
}
SendClientMessage(playerid,COLOR_GREY,"Organization commands");
SendClientMessage(playerid,COLOR_GREY,"/oc - Organization Chat");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You are not in a Organization!");
return 1;
}
return 0;
}
Yeah whats the problem? See anything wrong?
Reply
#2

pawn Код:
if (strcmp("/ocmds", cmdtext, true, 10) == 0)
{
if(LSHaulMember[playerid] == 1)
{
SendClientMessage(playerid,COLOR_GREY,"Organization commands");
SendClientMessage(playerid,COLOR_GREY,"/oc - Organization Chat");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You are not in a Organization!");
return 1;
}
return 0;
}
You used } instead of { after if statement.
Reply
#3

Yeah? I've tryed that. Look what came up, still looking for a answer.
Код:
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(255) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(255) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(257) : error 017: undefined symbol "vehicleid"
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(262) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(262) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(262) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(266) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(266) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(266) : error 004: function "OnPlayerStateChange" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(270) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(270) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(270) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(274) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(274) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(274) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(278) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(278) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(278) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(282) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(282) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(282) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(286) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(286) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(286) : error 004: function "OnRconCommand" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(290) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(290) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(290) : error 004: function "OnObjectMoved" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(294) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(294) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(294) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(298) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(298) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(298) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(302) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(302) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(302) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(306) : warning 225: unreachable code
C:\Documents and Settings\Ole\Dokumenter\GTA Server\gamemodes\Cabby.pwn(306) : error 029: invalid expression, assumed zero
Reply
#4

Check your script. You're probably missing one { or }.
Reply
#5

Quote:
Originally Posted by Don Correlli
Check your script. You're probably missing one { or }.
Nope.
Reply
#6

add '#include <a_samp>' at the very top of your script
Reply
#7

Quote:
Originally Posted by JaYmE
add '#include <a_samp>' at the very top of your script
Why, its always there. Still don't work anyone?
Reply
#8

the problem is a missing bracket ( { or } )
Reply
#9

ok can you post the whole script here please
Reply
#10

He's actually missing a parentheses some placce
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)