Why dont work??? [REP+] - 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)
+--- Thread: Why dont work??? [REP+] (
/showthread.php?tid=330127)
Why dont work??? [REP+] -
[FoR]EveR - 31.03.2012
Why this command dont work in my trucking server
pawn Код:
CMD:giveallmoney(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /giveallcash <amount>");
new money = strval(params);
for(new i=0; i < MAX_PLAYERS; i++) if(IsPlayerConnect(i)) CallRemoteFunction("GiveMoney", "ii", i, money);
new string[128], aName[MAX_PLAYER_NAME];
GetPlayerName(playerid, aName, sizeof(aName));
format(string, sizeof(string), "%s has given everyone $%d!", aName, money)
SendClientMessageToAll(0x00CCCCAA, string);
return 1;
}
get this eerors
pawn Код:
C:\Documents and Settings\rado\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(1504) : error 017: undefined symbol "IsPlayerConnect"
C:\Documents and Settings\rado\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(1508) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\rado\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(1513) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Re: Why dont work??? [REP+] -
Twisted_Insane - 31.03.2012
pawn Код:
for(new i=0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) CallRemoteFunction("GiveMoney", "ii", i, money);
pawn Код:
format(string, sizeof(string), "%s has given everyone $%d!", aName, money);
Search in your script for the variable "ret_memcpy" and delete it, or comment it out!
Re: Why dont work??? [REP+] -
[FoR]EveR - 31.03.2012
cant find
Re: Why dont work??? [REP+] -
Kaczmi - 31.03.2012
It's in dini.
Give this up:
pawn Код:
#pragma unused ret_memcpy
Re: Why dont work??? [REP+] -
[FoR]EveR - 31.03.2012
pawn Код:
stock dini_PRIVATE_ExtractKey(line[]) {
new tmp[MAX_STRING];
tmp[0]=0;
if (strfind(line,"=",true)==-1) return tmp;
set(tmp,strlower(ret_memcpy(line,0,strfind(line,"=",true))));
return tmp;
}
stock dini_PRIVATE_ExtractValue(line[]) {
new tmp[MAX_STRING];
tmp[0]=0;
if (strfind(line,"=",true)==-1) {
return tmp;
}
set(tmp,ret_memcpy(line,strfind(line,"=",true)+1,strlen(line)));
return tmp;
}
This