19.07.2010, 10:56
I install Moderntopia and i have some errors when i compile.
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 012: invalid function call, not a valid address
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : warning 215: expression has no effect
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 001: expected token: ";", but found ")"
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 029: invalid expression, assumed zero
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Help please.
//---------------------GIVE MATS-----------------
if(strcmp(cmd, "/givemats", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givemats [playerid/PartOfName] [amount]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
The last is line 11749.(giveplayerid = ReturnUser(tmp)
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 012: invalid function call, not a valid address
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : warning 215: expression has no effect
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 001: expected token: ";", but found ")"
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 029: invalid expression, assumed zero
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Help please.
//---------------------GIVE MATS-----------------
if(strcmp(cmd, "/givemats", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givemats [playerid/PartOfName] [amount]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
The last is line 11749.(giveplayerid = ReturnUser(tmp)