Why dont work??? [REP+]
#1

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.
Reply
#2

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!
Reply
#3

cant find
Reply
#4

It's in dini.

Give this up:

pawn Код:
#pragma unused ret_memcpy
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)