What is wrong
#1

My pawno is giving 26 errors


PHP код:
if (strcmp(cmdtext"/lock"true)==0)
    {
    if(
PlayerInfo[playerid][pDonateRank] >= 2)
    {
    print(
"Car locked");
    if(
IsPlayerInAnyVehicle(playerid))
    {
    new 
State=GetPlayerState(playerid);
    if(
State!=PLAYER_STATE_DRIVER)
    {
    
SendClientMessage(playerid,0xFFFF00AA,"You must be an driver to do this.");
    return 
1;
    }
    new 
i;
    for(
i=0;i<MAX_PLAYERS;i++)
    {
    if(
!= playerid)
    {
    
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i01);
    }
    }
    
SendClientMessage(playerid0xFFFF00AA"Car locked!");
    new 
Float:pXFloat:pYFloat:pZ;
    
GetPlayerPos(playerid,pX,pY,pZ);
    
PlayerPlaySound(playerid,1056,pX,pY,pZ);
    }
    else
    {
    
SendClientMessage(playerid0xFFFF00AA"You don't have an car.");
    }
    return 
1;
    } 
PHP код:
  if (strcmp(cmdtext"/unlock"true)==0)
    {
    if(
PlayerInfo[playerid][pDonateRank] >= 2)
    {
    print(
"Car unlocked");
    if(
IsPlayerInAnyVehicle(playerid))
    {
    new 
State=GetPlayerState(playerid);
    if(
State!=PLAYER_STATE_DRIVER)
    {
    
SendClientMessage(playerid,0xFFFF00AA,"You must be an driver to do this.");
    return 
1;
    }
    new 
i;
    for(
i=0;i<MAX_PLAYERS;i++)
    {
    
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i00);
    }
    
SendClientMessage(playerid0xFFFF00AA"Car unlocked.");
    new 
Float:pXFloat:pYFloat:pZ;
    
GetPlayerPos(playerid,pX,pY,pZ);
    
PlayerPlaySound(playerid,1057,pX,pY,pZ);
    }
    else
    {
    
SendClientMessage(playerid0xFFFF00AA"You don't have an car.");
    }
    return 
1;
    } 
Reply


Messages In This Thread
What is wrong - by boyan96 - 01.05.2012, 18:39
Re: What is wrong - by Sphex - 01.05.2012, 18:42
Re: What is wrong - by Passout - 01.05.2012, 18:44
Re : What is wrong - by Shidony - 01.05.2012, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)