Car Bomb
#7

Quote:
Originally Posted by Kar
Посмотреть сообщение
wtf do you people indent with? space?

pawn Код:
public OnPlayerEnterCheckpoint(playerid)//or something else
{
    if(HasC4[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_RED,"You already own C4");
    }
    if(GetPlayerMoney(playerid) >= 14999)
    {
        SendClientMessage(playerid,COLOR_RED,"You Don't have enough cash");
    }
    HasC4[playerid] =1;
    GivePlayerMoney(playerid, -15000);
}

if(!strcmp(cmdtext,"/placeC4",true))
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new bomb = IsValidObject(1252);
        new bomb, Float:x,Float:y,Float:z;
        GetPlayerPos(playerid,x,y,z);
        CreateObject(bomb,x,y,z+1,0,0,0);
        HasC4[playerid] =0;
        C4Placed[playerid] =1;
    }
}
if(!strcmp(cmdtext,"/detonateC4",true))
{
    if(C4Placed[playerid] == 0)
    {
        SendClientMessage(playerid,COLOR_RED,"You Haven't placed C4");
    }
    if(C4Placed[playerid] != 0)
    new bomb - IsValidObject(1252);
    new Float:bx,Float:by,Float:bz;
    GetObjectPos(bomb,bx,by,bz);
    CreateExplosion(bx,by,bz+1,7,10);
    DestroyObject(bomb);
    C4Placed[playerid =0);
}

Код:
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9014) : error 021: symbol already defined: "bomb"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9013) : warning 204: symbol is assigned a value that is never used: "bomb"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9028) : error 003: declaration of a local variable must appear in a compound block
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9028) : error 017: undefined symbol "bomb"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9028) : warning 215: expression has no effect
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9030) : error 017: undefined symbol "bomb"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9032) : error 017: undefined symbol "bomb"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9033) : error 001: expected token: "]", but found ")"
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9033) : error 029: invalid expression, assumed zero
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(9033) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Reply


Messages In This Thread
Car Bomb - by Kevin_Joshen - 07.08.2010, 05:12
Re: Car Bomb - by GangsTa_ - 07.08.2010, 05:55
Re: Car Bomb - by selten98 - 07.08.2010, 07:16
Re: Car Bomb - by selten98 - 07.08.2010, 11:43
Re: Car Bomb - by Kevin_Joshen - 08.08.2010, 02:26
Re: Car Bomb - by Kar - 08.08.2010, 02:32
Re: Car Bomb - by Kevin_Joshen - 08.08.2010, 03:19
Re: Car Bomb - by Kar - 08.08.2010, 03:58
Re: Car Bomb - by Ritchie999 - 08.08.2010, 04:01
Re: Car Bomb - by Kevin_Joshen - 08.08.2010, 04:12

Forum Jump:


Users browsing this thread: 1 Guest(s)