Ok,help me! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Ok,help me! (
/showthread.php?tid=252681)
Ok,help me! -
Cjgogo - 02.05.2011
What's worng here please?
pawn Код:
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
if(gTeam == TEAM_MEDICS) //519
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext); //523
if(!strlen(tmp)) //524
{
SendClientMessage(playerid,RED,"USAGE: /heal [playerid]");
return 1;
}
new player1;
player1 = ReturnUser(tmp); //530
tmp = strtok(cmdtext); //531
if(IsPlayerConnected(player1))
{
if(player1 != INVALID_PLAYER_ID)
{
GetPlayerName(player1,player1name,sizeof(player1name)); //536
GetPlayerName(playerid,medicname,sizeof(medicname));
new string[128];
format(string,sizeof(string),"%s has been healed by medic %s.",player1name,medicname);
SetPlayerHealth(player1,100);
GivePlayerMoney(playerid,300);
GivePlayerMoney(playerid,-300);
SendClientMessageToAll(GREEN,string);
}
}
}
}
}
Here are errors:
Код:
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(519) : error 033: array must be indexed (variable "gTeam")
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(523) : error 017: undefined symbol "tmp"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(523) : warning 202: number of arguments does not match definition
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(524) : error 017: undefined symbol "tmp"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(530) : error 017: undefined symbol "ReturnUser"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(531) : error 017: undefined symbol "tmp"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(531) : warning 202: number of arguments does not match definition
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : error 017: undefined symbol "player1name"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : error 017: undefined symbol "player1name"
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : error 029: invalid expression, assumed zero
D:\Jocuri\GTA\GTA San Andreas\SAMP\samp03csvr_win32\gamemodes\sfrpcrdm.pwn(536) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Re: Ok,help me! -
Cjgogo - 02.05.2011
Help please
!??!!
Re: Ok,help me! -
Slash01 - 02.05.2011
dont double post, only bump every 48 hours please
Re: Ok,help me! -
Joe Staff - 02.05.2011
Apparently you failed to copy&paste...
Re: Ok,help me! -
Cjgogo - 02.05.2011
yeah sure btoh answers were helpful sure
Re: Ok,help me! -
Cjgogo - 03.05.2011
nobody yet?