12.05.2013, 00:07
Hey guys, i try to make my own command, but i got this error. I don't know how to fix it, i'm newbie only on scripting.
Here's the error.
Here's the line.
Here's the error.
Код:
C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP16 - Copy.pwn(12868) : warning 217: loose indentation C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP16 - Copy.pwn(12870) : warning 217: loose indentation C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP16 - Copy.pwn(12875) : error 010: invalid function or declaration C:\Users\aNdRe\Downloads\UnderWorld Roleplay\UnderWorld Roleplay\gamemodes\UWRP16 - Copy.pwn(12878) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
CMD:getrefund(playerid, params[])
{
if(PlayerInfo[playerid][pConnectTime] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "You can't get your refunds, you need to have a 3 hours playing time!");
return 1;
}
if(PlayerInfo[playerid][pConnectTime] <3)
PlayerInfo[playerid][pCash] = 100000;
PlayerInfo[playerid][pMats] = 1000;
PlayerInfo[playerid][pLevel] = 3;
PlayerInfo[playerid][pDonator] = 3;
return 1;
}
if(PlayerInfo[playerid][pConnectTime] <3)
{
SendClientMessage(playerid, COLOR_GRAD1, "Thanks for getting your refund! Enjoy!");
return 1;
}
}
}

