[Pedido] Ao matar sendmsgclient
#10

Quote:
Originally Posted by PT
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    switch(reason)
        case 47, 49, 50, 51, 53, 54: return 1;
    new gunname[32], string[64], fName[MAX_PLAYER_NAME], sName[MAX_PLAYER_NAME];
    GetWeaponName(reason,gunname,sizeof(gunname));
    GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
    GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s matou %s com a %s.", sName, fName, gunname);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}
tenta
D:\Documents and Settings\Administrator\Desktop\RPG\pawno\include\s scanf2.inc(71) : warning 235: public function lacks forward declaration (symbol "OnNPCModeInit")
D:\Documents and Settings\Administrator\Desktop\RPG\pawno\include\s scanf2.inc(307) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\pawno\include\s scanf2.inc(307) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\pawno\include\s scanf2.inc(367) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\pawno\include\s scanf2.inc(367) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\pawno\include\a lss.inc(89) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(1996) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(3837) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(4254) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(4474) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(458 : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(13054) : warning 219: local variable "price" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(13096) : warning 219: local variable "price" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(1313 : warning 219: local variable "price" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(13460) : warning 219: local variable "price" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(15160) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(1610 : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(16203) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(1621 : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(16265) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(16280) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(16405) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(16410) : warning 219: local variable "caller" shadows a variable at a preceding level
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : error 002: only a single statement (or expression) can follow each "case"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : error 017: undefined symbol "gunname"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : warning 215: expression has no effect
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : error 001: expected token: ";", but found "]"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrogas] = 0;

    switch(reason) {
        case 47, 49, 50, 51, 53, 54: return 1;
    new gunname[32], string[64], fName[MAX_PLAYER_NAME], sName[MAX_PLAYER_NAME];
    GetWeaponName(reason,gunname,sizeof(gunname));
    GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
    GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
    format(string, sizeof(string), "(( %s matou %s com a %s. ))", sName, fName, gunname);
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}

// morrer pm ser preso
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17274) : error 001: expected token: "{", but found "case"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : error 002: only a single statement (or expression) can follow each "case"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : error 017: undefined symbol "gunname"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : warning 215: expression has no effect
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : error 001: expected token: ";", but found "]"
D:\Documents and Settings\Administrator\Desktop\RPG\Gamemodes\ULTRA 2.pwn(17275) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

pawn Код:
PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pDrogas] = 0;

    switch(reason)
        case 47, 49, 50, 51, 53, 54: return 1;
    new gunname[32], string[64], fName[MAX_PLAYER_NAME], sName[MAX_PLAYER_NAME];
    GetWeaponName(reason,gunname,sizeof(gunname));
    GetPlayerName(playerid,fName,MAX_PLAYER_NAME);
    GetPlayerName(killerid,sName,MAX_PLAYER_NAME);
    format(string, sizeof(string), "(( %s matou %s com a %s. ))", sName, fName, gunname);
    SendClientMessageToAll(0xFFFFFFAA,string);
Reply


Messages In This Thread
Ao matar sendmsgclient - by luccagomes15 - 21.11.2013, 11:21
Re: Ao matar sendmsgclient - by DannielCooper - 21.11.2013, 12:07
Re: Ao matar sendmsgclient - by PT - 21.11.2013, 14:27
Re: Ao matar sendmsgclient - by luccagomes15 - 21.11.2013, 15:26
Re: Ao matar sendmsgclient - by Catchorro - 21.11.2013, 15:31
Re: Ao matar sendmsgclient - by PT - 21.11.2013, 17:00
Re: Ao matar sendmsgclient - by maikons - 22.11.2013, 01:15
Re: Ao matar sendmsgclient - by PT - 22.11.2013, 10:15
Re: Ao matar sendmsgclient - by DannielCooper - 22.11.2013, 11:27
Re: Ao matar sendmsgclient - by luccagomes15 - 22.11.2013, 13:25

Forum Jump:


Users browsing this thread: 2 Guest(s)