C:\Users\Acer\Desktop\SAMP\pawno\tunecar.pwn(21) : error 036: empty statement
public OnPlayerCommandText(playerid, cmdtext[]) {
if(strcmp(cmdtext, "/tunecar", true) == 0) {
If(IsPlayerVipType(playerid,2)); // Line 21
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
return ModCar(playerid);
}
else {
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You must be in a car being the driver Or You Not Gold VIP");
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tunecar", true) == 0)
{
if(IsPlayerVipType(playerid,2))
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER)
{
return ModCar(playerid);
}
else
{
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You must be in a car being the driver Or You Not Gold VIP");
}
}
return 1;
}
if(IsPlayerVipType(playerid, 2))
{
// Code
}
C:\Users\Acer\Desktop\SAMP\pawno\tunecar.pwn(24) : error 003: declaration of a local variable must appear in a compound block C:\Users\Acer\Desktop\SAMP\pawno\tunecar.pwn(24) : error 017: undefined symbol "playerstate" C:\Users\Acer\Desktop\SAMP\pawno\tunecar.pwn(25) : error 017: undefined symbol "playerstate" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tunecar", true) == 0)
{
if(IsPlayerVipType(playerid,2))
new playerstate = GetPlayerState(playerid); // 24
if(playerstate == PLAYER_STATE_DRIVER) //25
{
return ModCar(playerid);
}
else
{
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You must be in a car being the driver Or You Not Gold VIP");
}
}
return 1;
}
if(GetPlayerState(playerid)== PLAYER_STATE_DRIVER) {
public OnPlayerCommandText(playerid, cmdtext[])
{
new playerstate = GetPlayerState(playerid);
if(strcmp(cmdtext, "/tunecar", true) == 0)
{
if(IsPlayerVipType(playerid,2))
if(playerstate == PLAYER_STATE_DRIVER)
{
return ModCar(playerid);
}
else
{
return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You must be in a car being the driver Or You Not Gold VIP");
}
}
return 1;
}