[POMOC]Brzinomjer error

Započeo ChampaWasTaken, Decembar 11, 2012, 10:14:06 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: EPGRP
Detaljan opis problema: Pa vako napravio sam textdraw brzinomjer i sada kada hocu da ga ubacim izbacuje mi ove errore C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16250) : error 033: array must be indexed (variable "Zbr0")
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16251) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16252) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16253) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16254) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16255) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16256) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16257) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16259) : error 033: array must be indexed (variable "Zbr1")
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16260) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16261) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16262) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16263) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16264) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16265) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16266) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16268) : error 033: array must be indexed (variable "Zbr2")
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16269) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16270) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16271) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16272) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16273) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16274) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16275) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16276) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16277) : error 035: argument type mismatch (argument 1)

Dio skripte: Zbr0= TextDrawCreate(541.000000, 250.000000, "Kontrolna");
TextDrawBackgroundColor(Zbr0, 255);
TextDrawFont(Zbr0, 3);
TextDrawLetterSize(Zbr0, 0.500000, 1.000000);
TextDrawColor(Zbr0, -16776961);
TextDrawSetOutline(Zbr0, 0);
TextDrawSetProportional(Zbr0, 1);
TextDrawSetShadow(Zbr0, 1);

Zbr1= TextDrawCreate(553.000000, 260.000000, "Ploca");
TextDrawBackgroundColor(Zbr1, 255);
TextDrawFont(Zbr1, 2);
TextDrawLetterSize(Zbr1, 0.500000, 1.000000);
TextDrawColor(Zbr1, -16776961);
TextDrawSetOutline(Zbr1, 0);
TextDrawSetProportional(Zbr1, 1);
TextDrawSetShadow(Zbr1, 1);

Zbr2= TextDrawCreate(647.000000, 265.000000, "-");
TextDrawBackgroundColor(Zbr2, 255);
TextDrawFont(Zbr2, 1);
TextDrawLetterSize(Zbr2, 0.609999, 9.399993);
TextDrawColor(Zbr2, -1);
TextDrawSetOutline(Zbr2, 0);
TextDrawSetProportional(Zbr2, 1);
TextDrawSetShadow(Zbr2, 1);
TextDrawUseBox(Zbr2, 1);
TextDrawBoxColor(Zbr2, 572661759);
TextDrawTextSize(Zbr2, 521.000000, -145.000000);

Zbr3= TextDrawCreate(526.000000, 274.000000, "Naziv vozila:");
TextDrawBackgroundColor(Zbr3, 255);
TextDrawFont(Zbr3, 1);
TextDrawLetterSize(Zbr3, 0.500000, 1.000000);
TextDrawColor(Zbr3, -16776961);
TextDrawSetOutline(Zbr3, 1);
TextDrawSetProportional(Zbr3, 1);

Zbr4= TextDrawCreate(526.000000, 285.000000, "Infernus");
TextDrawBackgroundColor(Zbr4, 572661759);
TextDrawFont(Zbr4, 2);
TextDrawLetterSize(Zbr4, 0.500000, 1.000000);
TextDrawColor(Zbr4, -16776961);
TextDrawSetOutline(Zbr4, 1);
TextDrawSetProportional(Zbr4, 1);

Zbr5= TextDrawCreate(527.000000, 302.000000, "Brzina:");
TextDrawBackgroundColor(Zbr5, 255);
TextDrawFont(Zbr5, 1);
TextDrawLetterSize(Zbr5, 0.629999, 1.200000);
TextDrawColor(Zbr5, -16776961);
TextDrawSetOutline(Zbr5, 1);
TextDrawSetProportional(Zbr5, 1);

Zbr6= TextDrawCreate(528.000000, 314.000000, "255");
TextDrawBackgroundColor(Zbr6, 572661759);
TextDrawFont(Zbr6, 2);
TextDrawLetterSize(Zbr6, 0.500000, 1.000000);
TextDrawColor(Zbr6, -16776961);
TextDrawSetOutline(Zbr6, 1);
TextDrawSetProportional(Zbr6, 1);

Zbr7= TextDrawCreate(528.000000, 330.000000, "Gorivo:");
TextDrawBackgroundColor(Zbr7, 255);
TextDrawFont(Zbr7, 1);
TextDrawLetterSize(Zbr7, 0.620000, 1.000000);
TextDrawColor(Zbr7, -16776961);
TextDrawSetOutline(Zbr7, 1);
TextDrawSetProportional(Zbr7, 1);

Zbr8= TextDrawCreate(528.000000, 341.000000, "100");
TextDrawBackgroundColor(Zbr8, 572661759);
TextDrawFont(Zbr8, 2);
TextDrawLetterSize(Zbr8, 0.500000, 1.000000);
TextDrawColor(Zbr8, -16776961);
TextDrawSetOutline(Zbr8, 0);
TextDrawSetProportional(Zbr8, 1);
TextDrawSetShadow(Zbr8, 1);

Zbr9= TextDrawCreate(571.000000, 342.000000, "Litara");
TextDrawBackgroundColor(Zbr9, 255);
TextDrawFont(Zbr9, 2);
TextDrawLetterSize(Zbr9, 0.380000, 1.000000);
TextDrawColor(Zbr9, -16776961);
TextDrawSetOutline(Zbr9, 1);
TextDrawSetProportional(Zbr9, 1);

Zbr10= TextDrawCreate(706.000000, 301.000000, "-");
TextDrawBackgroundColor(Zbr10, 255);
TextDrawFont(Zbr10, 1);
TextDrawLetterSize(Zbr10, 0.500000, -0.299999);
TextDrawColor(Zbr10, -1);
TextDrawSetOutline(Zbr10, 0);
TextDrawSetProportional(Zbr10, 1);
TextDrawSetShadow(Zbr10, 1);
TextDrawUseBox(Zbr10, 1);
TextDrawBoxColor(Zbr10, 255);
TextDrawTextSize(Zbr10, 521.000000, 1.000000);

Zbr11= TextDrawCreate(681.000000, 327.000000, "-");
TextDrawBackgroundColor(Zbr11, 255);
TextDrawFont(Zbr11, 1);
TextDrawLetterSize(Zbr11, 0.500000, -0.300000);
TextDrawColor(Zbr11, -1);
TextDrawSetOutline(Zbr11, 0);
TextDrawSetProportional(Zbr11, 1);
TextDrawSetShadow(Zbr11, 1);
TextDrawUseBox(Zbr11, 1);
TextDrawBoxColor(Zbr11, 255);
TextDrawTextSize(Zbr11, 521.000000, 0.000000);

Zbr12= TextDrawCreate(672.000000, 354.000000, "-");
TextDrawBackgroundColor(Zbr12, 255);
TextDrawFont(Zbr12, 1);
TextDrawLetterSize(Zbr12, 0.500000, -0.100000);
TextDrawColor(Zbr12, -1);
TextDrawSetOutline(Zbr12, 0);
TextDrawSetProportional(Zbr12, 1);
TextDrawSetShadow(Zbr12, 1);
TextDrawUseBox(Zbr12, 1);
TextDrawBoxColor(Zbr12, 255);
TextDrawTextSize(Zbr12, 521.000000, 0.000000);

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Mislim dakle Boze
Na Zari sve i svasta

pogresio si oko prvog parametra u tome

Evo vako sam definiso new Text:Zbr0[MAX_PLAYERS]; Radio sam po ovom brzinomjeru sto je fare pravio na ovom modu :s
Mislim dakle Boze
Na Zari sve i svasta

Moze uko pomoci molim vas?

sry za dp slucajno sam isao umjesto edit odgovor :s
Poslednja Izmena: Decembar 12, 2012, 08:43:54 PRE PODNE od [AP:RP]Champa
Mislim dakle Boze
Na Zari sve i svasta

A jesi probao ovako možda?

Zbr0[playerid] = TextDrawCreate(541.000000, 250.000000, "Kontrolna");
TextDrawBackgroundColor(Zbr0[playerid], 255);
TextDrawFont(Zbr0[playerid], 3);
TextDrawLetterSize(Zbr0[playerid], 0.500000, 1.000000);
TextDrawColor(Zbr0[playerid], -16776961);
TextDrawSetOutline(Zbr0[playerid], 0);
TextDrawSetProportional(Zbr0[playerid], 1);
TextDrawSetShadow(Zbr0[playerid], 1);


Poslednja Izmena: Decembar 12, 2012, 12:48:03 POSLE PODNE od Alycone

Citat: Alycone poslato Decembar 12, 2012, 12:47:17 POSLE PODNE
A jesi probao ovako možda?

Zbr0[playerid] = TextDrawCreate(541.000000, 250.000000, "Kontrolna");
TextDrawBackgroundColor(Zbr0[playerid], 255);
TextDrawFont(Zbr0[playerid], 3);
TextDrawLetterSize(Zbr0[playerid], 0.500000, 1.000000);
TextDrawColor(Zbr0[playerid], -16776961);
TextDrawSetOutline(Zbr0[playerid], 0);
TextDrawSetProportional(Zbr0[playerid], 1);
TextDrawSetShadow(Zbr0[playerid], 1);


ovako probaj i trebalo bi raditi, imao sam i ja takve errore dok ovako nisam napravio

Citat: Cannabis poslato Decembar 12, 2012, 13:08:21 POSLE PODNE
Citat: Alycone poslato Decembar 12, 2012, 12:47:17 POSLE PODNE
A jesi probao ovako možda?

Zbr0[playerid] = TextDrawCreate(541.000000, 250.000000, "Kontrolna");
TextDrawBackgroundColor(Zbr0[playerid], 255);
TextDrawFont(Zbr0[playerid], 3);
TextDrawLetterSize(Zbr0[playerid], 0.500000, 1.000000);
TextDrawColor(Zbr0[playerid], -16776961);
TextDrawSetOutline(Zbr0[playerid], 0);
TextDrawSetProportional(Zbr0[playerid], 1);
TextDrawSetShadow(Zbr0[playerid], 1);


ovako probaj i trebalo bi raditi, imao sam i ja takve errore dok ovako nisam napravio
tako bi i trebalo da bude cini mi se, ali uz to se i koristi TextDrawSetString

O blaeks mod čestitke brt!!! Probati ću to namjestit hvala vam ako nebude radilo javim vam i jel vako trebam uraditi svaki TD?
Poslednja Izmena: Decembar 12, 2012, 21:26:10 POSLE PODNE od [AP:RP]Champa
Mislim dakle Boze
Na Zari sve i svasta

Evo probo sam ovo da uradim ujutro i bacalo mi je neke errore pa sam pokusao da pobrisem sve ono [playerid] ili gdje je bilo i uspjelo mi je donekle ali sada mi uvjek baca ovo sta got uradim :s

C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(76291) : error 028: invalid subscript (not an array or too many subscripts): "Zbr6"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(76291) : warning 215: expression has no effect
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(76291) : error 001: expected token: ";", but found "]"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(76291) : error 029: invalid expression, assumed zero
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(76291) : fatal error 107: too many error messages on one line


Na ovom djelu skripte

if(IsVehicleDrivingBackwards(GetPlayerVehicleID(playerid)))
{
Loop(x, 6) TextDrawHideForPlayer(playerid, Gear[x]);
    TextDrawSetString(GearInfo[playerid], "_"), TextDrawShowForPlayer(playerid, GearInfo[playerid]);
    TextDrawSetString(Speedo[playerid], "-"),TextDrawShowForPlayer(playerid,KMH1),TextDrawShowForPlayer(playerid,KMH2),TextDrawShowForPlayer(playerid,KMH3),TextDrawShowForPlayer(playerid, Speedo[playerid]);
    return 1;
}
}
else
{
    HideGeneral(playerid);
    TextDrawHideForPlayer(playerid, Speedo);
    TextDrawHideForPlayer(playerid, KMH1);
    TextDrawHideForPlayer(playerid, KMH2);
    TextDrawHideForPlayer(playerid, KMH3);
    TextDrawHideForPlayer(playerid, GearInfo);
    Loop(x, 6) TextDrawHideForPlayer(playerid, Gear[x]);
}
return 1;
}


Sry sto nije proslo 24 sata al mi STVARNO treba pomoc zato molim vas nemojte lock i pls help :s
Poslednja Izmena: Decembar 13, 2012, 09:39:52 PRE PODNE od [AP:RP]Champa
Mislim dakle Boze
Na Zari sve i svasta

na vrh moras ovako new Text:Zbr6[MAX_PLAYERS];

aaaaaaaah Ove za brzinomjer nikako nemoze izbacuje mi ove errore kada ubacim ono [playerid] i [MAX_PLAYERS] C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15194) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15195) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15196) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15197) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15198) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15199) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15200) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15201) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15202) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16261) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16262) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16263) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16264) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16265) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16266) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16267) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16268) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16270) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16271) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16272) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16273) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16274) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16275) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16276) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16277) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16279) : error 017: undefined symbol "playerid"


Mozeli mi netko dati tuturial samo kako da ovo napravim molim vas!
Mislim dakle Boze
Na Zari sve i svasta

pod ongamemodeinit nemas definisan playerid, moras sa foreachom foreach(Player, i)
{
//i ovde textdraw
}

Nrdi moze tut pls evo errora C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16262) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16263) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16264) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16265) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16266) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16267) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16268) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16269) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16271) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16272) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16273) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16274) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16275) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16276) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16277) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16278) : error 017: undefined symbol "playerid"
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(16280) : error 017: undefined symbol "playerid"


C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15194) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15195) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15196) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15197) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15198) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15199) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15200) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15201) : error 035: argument type mismatch (argument 1)
C:\Users\Rake\Desktop\EGRPv2\gamemodes\EGRP.pwn(15202) : error 035: argument type mismatch (argument 1)


Mislim dakle Boze
Na Zari sve i svasta


Nrdi bgm nebih vas beze mucio nego mozeli mi iko pomoc da ovo: #include <a_samp>
#include <a_http>

#if ( !defined MAILER_MAX_MAIL_SIZE )
#define MAILER_MAX_MAIL_SIZE  (1024)
#endif

#if ( !defined MAILER_URL )
#error Please define MAILER_URL before including the mailer include.
#endif

stock SendMail( const szReceiver[ ], const szSenderMail[ ], const szSenderName[ ], const szSubject[ ], const szMessage[ ] )
{
new
szBuffer[ MAILER_MAX_MAIL_SIZE ] = "t=",
iPos    = strlen( szBuffer ),
iLength = strlen( szReceiver )
;

memcpy( szBuffer, szReceiver, iPos * 4, ( iLength + 1 ) * 4 );

StringURLEncode( szBuffer[ iPos ], 1024 - iPos );

strcat( szBuffer, "&f=" );

iPos    = strlen( szBuffer );
iLength = strlen( szSenderName );

memcpy( szBuffer, szSenderName, iPos * 4, ( iLength + 1 ) * 4 );

StringURLEncode( szBuffer[ iPos ], 1024 - iPos );

strcat( szBuffer, "&n=" );

iPos    = strlen( szBuffer );
iLength = strlen( szSenderMail );

memcpy( szBuffer, szSenderMail, iPos * 4, ( iLength + 1 ) * 4 );

StringURLEncode( szBuffer[ iPos ], 1024 - iPos );

strcat( szBuffer, "&s=" );

iPos    = strlen( szBuffer );
iLength = strlen( szSubject );

memcpy( szBuffer, szSubject, iPos * 4, ( iLength + 1 ) * 4 );

StringURLEncode( szBuffer[ iPos ], 1024 - iPos );

strcat( szBuffer, "&m=" );

iPos    = strlen( szBuffer );
iLength = strlen( szMessage );

memcpy( szBuffer, szMessage, iPos * 4, ( iLength + 1 ) * 4 );

StringURLEncode( szBuffer[ iPos ], 1024 - iPos );

HTTP( 0xD00D, HTTP_POST, MAILER_URL, szBuffer, "OnMailScriptResponse" );
}

forward OnMailScriptResponse( iIndex, iResponseCode, const szData[ ] );
public  OnMailScriptResponse( iIndex, iResponseCode, const szData[ ] )
{
if ( szData[ 0 ] )
printf( "Mailer script says: %s", szData );
}

stock StringURLEncode( szString[ ], iSize = sizeof( szString ) )
{
for ( new i = 0, l = strlen( szString ); i < l; i++ )
{
switch ( szString[ i ] )
{
case '!', '(', ')', '\'', '*',
     '0' .. '9',
     'A' .. 'Z',
     'a' .. 'z':
{
continue;
}

case ' ':
{
szString[ i ] = '+';

continue;
}
}

new
s_szHex[ 8 ]
;

if ( i + 3 >= iSize )
{
szString[ i ] = EOS;

break;
}

if ( l + 3 >= iSize )
szString[ iSize - 3 ] = EOS;

format( s_szHex, sizeof( s_szHex ), "%02h", szString[ i ] );

szString[ i ] = '%';

strins( szString, s_szHex, i + 1, iSize );

l += 2;
i += 2;

if ( l > iSize - 1 )
l = iSize - 1;
}
}


Pretvori u .inc file posto NIKAKO nmgu da to uradim niti znam kako (to mi fkt treba hitno za update sto radim)
Mislim dakle Boze
Na Zari sve i svasta