Valaki tudja hogy hogyan menthetek le warn-t vagy valami ilyesmit.
[pawn] //Choin Script by ElectroX aka(Light,Adams)
//Evel a scripttel az admin tud adni masoknak penzermet.
//Ezt majd fel lehet hasznali es lehet belole venni kocsit stb,penzbe valtani.
#include <a_samp>
#include <core>
#include <float>
#include <dini>
#include <dudb>
#pragma tabsize 0
#define COLOR_WHITE -1
#define COLOR_YELLOW -2
new Choin[MAX_PLAYERS];
new MaxChoin = 50;
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == \'\\0\') && (dcmd_%1(playerid, \"\"))) || (((%3)[(%2) + 1] == \' \') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
public OnPlayerConnect(playerid)
{
new string[64], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"Choins/%s.ini\", name);
if(fexist(string))
{
Choin(playerid, dini_Int(string, \"Choin\");
}
else
{
dini_Create(string);
dini_IntSet(string, \"Choin\", 0);
}
}
public OnPlayerDisconnect(playerid, reason)
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"Choins/%s.ini\", name);
if(fexist(string))
{
dini_IntSet(string, \"Choin\", Choin[playerid];
}
else
{
dini_Create(string);
dini_IntSet(string, \"Choin\", Choin[playerid];
}
}
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(givechoin, 8, cmdtext);
new cmd[256];
new str[128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
if(strcmp(cmd, \"/mychoin\", true) == 0) {
format(str,sizeof(str),\"[Choin]:%s :(Osszesen: %d/%d)\",pName, Choin[playerid], MaxChoin);
SendClientMessage(playerid,0xFFFF00AA,str);
return 1;
}
return 0;
}
dcmd_givechoin(playerid, params[])
{
new giveplayerid;
if(IsPlayerAdmin(playerid))
if (sscanf(params, \"ud\", giveplayerid)) SendClientMessage(playerid, 0xFF0000AA, \"Usage: /givechoin [playerid/partname]\");
else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, \"Player not found\");
else
{
Choin[giveplayerid]++;
SendClientMessage(playerid, 0x00FF00AA, \"Choin sent\");
SendClientMessage(giveplayerid, 0x00FF00AA, \"Choin received\");
}
return 1;
} [/pawn]
Ez lenne az.
Ezeket az errorokat adja :
C:\\Documents and Settings\\Owner\\Desktop\\Choin.pwn(30) : error 012: invalid function call, not a valid address
C:\\Documents and Settings\\Owner\\Desktop\\erem.pwn(30) : warning 215: expression has no effect
C:\\Documents and Settings\\Owner\\Desktop\\erem.pwn(48) : error 001: expected token: \",\", but found \";\"
C:\\Documents and Settings\\Owner\\Desktop\\erem.pwn(54) : error 001: expected token: \",\", but found \";\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors./code]