Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-03-17, 21:44


BosteQ







Wiek: 28
Na forum: 5312 dni
Posty: 2
Nick w MP: BosteQ

Piwa: 1

Respekt: 46,4

Kod:

C:\Documents and Settings\***\Desktop\ser\gamemodes\Test\pzwt.pwn(572) : error 017: undefined symbol "cmd"
C:\Documents and Settings\***\Desktop\ser\gamemodes\Test\pzwt.pwn(581) : error 017: undefined symbol "sendername"
C:\Documents and Settings\***\Desktop\ser\gamemodes\Test\pzwt.pwn(581) : error 017: undefined symbol "sendername"
C:\Documents and Settings\***\Desktop\ser\gamemodes\Test\pzwt.pwn(581) : error 029: invalid expression, assumed zero
C:\Documents and Settings\***\Desktop\ser\gamemodes\Test\.pwn(581) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.


Dodane Linijki:

Kod:

//----------------------------------[Emote]-----------------------------------------------
if(strcmp(cmd, "/ja", true) == 0 || strcmp(cmd, "/me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
/* if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nie jeste? zalogowany !");
return 1;
}*/
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "U?yj: /ja [akcja]");
return 1;
}
format(string, sizeof(string), "* %s %s", sendername, result);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}
//----------------------------------[Emote]-----------------------------------------------
if(strcmp(cmd, "/do", true) == 0)
{
if(IsPlayerConnected(playerid))
{
/*if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nie jeste? zalogowany !");
return 1;
}*/
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "U?yj: /do [akcja]");
return 1;
}
format(string, sizeof(string), "* %s ((%s))", result, sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 21:58


MG303







Wiek: 30
Na forum: 6418 dni
Posty: 654

Piwa: 2990

Respekt: 231,6
Respekt: 231,6Respekt: 231,6

Postaw piwo autorowi tego posta
 

 
Tagi: coś :: zle :: zrobiłem :: /me :: /do
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Coś zle zrobiłem z /me i /do Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku